package com.sali.service.data_processor.chain;


import com.sali.commons.exception.ProcessChainHandlerInitException;
import com.sali.commons.exception.ProcessChainHandlerProcessException;
import com.sali.entity.ProcessDefinition;
import com.sali.entity.TransferObject;

public interface IProcessChainHandler {

    // 前置处理，用于初始化处理单元，只执行一次
    void preProcess(ProcessDefinition processDefinition) throws ProcessChainHandlerInitException;


    // 处理过程
    void process(TransferObject input) throws ProcessChainHandlerProcessException;

}
